package com.ruoyi.system.basicInformation.mapper;

import com.ruoyi.system.basicInformation.bo.TAlarmAddBo;
import com.ruoyi.system.basicInformation.bo.TAlarmQueryBo;
import com.ruoyi.system.basicInformation.domain.TAlarm;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.basicInformation.vo.TAlarmCountVo;
import com.ruoyi.system.basicInformation.vo.TAlarmVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 报警信息Mapper接口
 *
 * @author ruoyi
 * @date 2021-05-19
 */
public interface TAlarmMapper extends BaseMapper<TAlarm> {
    List<TAlarmVo> listTAlarmListDTO(@Param("query") TAlarmQueryBo query);

    List<TAlarmVo> listTAlarmVo(@Param("query") TAlarmQueryBo query);

    Integer apply(@Param("id") Long id, @Param("verify") Integer verify);

    Integer insertByTerminalAddBo(TAlarmAddBo bo);

    List<TAlarmVo> queryListForMap(@Param("query") TAlarmQueryBo query);

    TAlarmCountVo toDayCount(@Param("query")Integer isToDay);
}
